package com.itheima.text1;

public class Text4 {
    public static void main(String[] args) {
        Outer4 o = new Outer4();
        o.show();
    }
}
class Outer4{
    int a = 10;
    public void show(){
        int b = 20;
        class Inter4{
            public void method(){
                System.out.println("method----方法");
                System.out.println(a);
                System.out.println(b);
            }
        }
        Inter4 i = new Inter4();
        i.method();
    }
}
